//
//  PTStudyAppointmentTimeSelectCell.m
//  PT
//
//  Created by yate1996 on 15/6/19.
//  Copyright (c) 2015年 jarze. All rights reserved.
//

#import "PTStudyAppointmentTimeSelectCell.h"
#import "PTStudyAppointmentTimeSelectCellView.h"

@interface PTStudyAppointmentTimeSelectCell ()

@end
@implementation PTStudyAppointmentTimeSelectCell

- (void)awakeFromNib {
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

}

+ (instancetype)cellWithTableView:(UITableView *)tableView
{
    static NSString *ID = @"TimeSelectCell";
    
    PTStudyAppointmentTimeSelectCell *cell = [tableView dequeueReusableCellWithIdentifier: ID];
    if (cell == nil) {
    
        cell = [[PTStudyAppointmentTimeSelectCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier: ID];
    }
    
    return cell;
    
}

-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if(self) {
        
        PTStudyAppointmentTimeSelectCellView *timeSelectView = [[PTStudyAppointmentTimeSelectCellView alloc]initWithFrame:CGRectMake(0, 0, 320, 42)];
        [self.contentView addSubview:timeSelectView];
        self.timeSelectView = timeSelectView;
//        self.backgroundColor = PTColor(245, 245, 245, 1.0);

    }
    
    return self;
    
}

@end
